<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>浮动塌陷与浮动卡住</title>
		<style>
			#father{
				width: 500px;
				heig ht: 100px;
				border: 10px solid red;
				overflow: hidden;
			}
			.d1,.d2,.d3,.d5,.d4{
				width: 100px;
				height: 100px;
				font-size: 70px;
				text-align: center;
				line-height: 100px;
				color: #fff;
				float: left;
			}
			.d1{
				backgro''und-color: #00ffff;
				height: 101px;
			}
			.d2{
				background-color: #55ff7f;
			}
			.d3{
				background-color: #ff55ff;
				height: 130px;
			}
			.d4{
				background-color: #ffff00;
			}
			.d5{
				background-color: #ff5500;
				clear: both;
			}
		</style>
	</head>
	<body>
		<div id="father">
			<div class="d1">1</div>
			<div class="d2">2</div>
			<div class="d3">3</div>
			<div class="d4">4</div>
			<div class="d5">5</div>
		</div>
	</body>
</html>